#ifndef BUZZER_H
#define BUZZER_H

#include <linux/device.h>

#include "pwm.h"

struct buzzer_device
{
	struct device device;
	struct device_attribute attr;
	gpio_pwm_desc *buzzer_pin;
	int freq;
	int enabled;
};

struct buzzer_device* buzzer_init(unsigned int gpio_pin, char *name, struct device *parent);
void buzzer_release(struct buzzer_device *dev);

#endif
